.font-setting {
  border: 1px solid theme('colors.gray.fourth');
  padding-left: 8px;
  background-color: #fff;

  :global(.ant-form-item) {
    margin: 0;
  }

  :global(.ant-form-item-control-input-content) {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    column-gap: 6px;

    .ant-radio-button-wrapper:hover,
    .ant-btn:hover,
    .font-color:hover {
      background: #fff5f0;
    }

    .ant-form-item {
      margin: 0;
    }

    button {
      border: unset;
      width: 24px;
      height: 24px;
      padding: 4px;

      display: flex;
      align-items: center;
      justify-content: center;

      span {
        display: flex;
        align-items: center;
        justify-content: center;
      }

      &:disabled {
        background: #fff;

        .text-gray-secondary {
          color: theme('colors.gray.fourth');
        }
      }

      .text-primary {
        color: #2673dd;
      }

      .text-gray-secondary {
        color: theme('colors.gray.third');
      }
    }

    .ant-radio-button-wrapper {
      border: unset;
      height: 24px;
      padding: 0 8px;

      &:not(:first-child) {
        &::before {
          width: 0;
        }
      }
    }
  }

  :global(.ant-radio-button-wrapper) {
    width: 24px;
  }
}

.active {
  background: rgb(38 115 221 / 6%) !important;
  border-radius: 2px;

  &:hover,
  &:focus {
    background: rgb(38 115 221 / 6%) !important;
  }
}

.add-border {
  position: relative;

  :global(.ant-form-item-row) {
    margin-left: 6px;
  }

  &::before {
    position: absolute;
    top: -1px;
    left: -1px;
    display: block;
    box-sizing: content-box;
    width: 1px;
    height: 14px;
    margin: 9px 0;
    background-color: #d9d9d9;
    transition: background-color 0.3s;
    content: '';
  }
}

.font-color-icon {
  svg {
    font-size: 17px;
  }
}
